<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script
      src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.40/vue.global.js"
      type="application/javascript"
    ></script>
  </head>
  <body>
    <!-- 准备个容器 -->
    <div id="app">{{msg}}</div>
    <div id="app2">{{msg2}}</div>

    <script>
      const app = Vue.createApp({
        data() {
          return {
            msg: "hello world",
          };
        },
      });
      app.mount("#app");

      const { createApp } = Vue;
      createApp({
        data() {
          return {
            msg2: "hello Vue",
          };
        },
      }).mount("#app2");
    </script>
  </body>
</html>
